<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <style>
        body{
            display: flex;
        }
        #app{
            width: 300px;
            height: 300px;
            background-color: bisque;
        }
        button{
            display: block;
            width: 80px;
            height: 80px;
        }
    </style>
</head>
<body>
    <div id="app">
        {{ name }}
        age:{{ age }}
        msg:{{ msg.name }}
        ag:{{ msg.ag }}
        <button @mouseout = "age++">鼠标移出</button>
        <button @click = "age++">age加</button>
        <button @click = "age--">age减</button>
        <button @click = "name = '李'">修改name为李</button>
        <button @click = "msg.ag = 'ming'">增加ag为ming</button>
        <button @click = "delete msg.name">删除msg数据</button>
        <div v-for="a in 8">
            <li>111</li>
            <li>222</li>
        </div>
    </div>
    <div id="asd">
        <div v-text="ming"></div>
        <div v-html="msg.li"></div>
    </div>
</body>
</html>
<script>
    const { createApp } = Vue
    const app = createApp({
        data(){
            return {
                name:'ming',
                age:18,
                msg:{
                    name:'ming'
                }
            }
        }
    })
    app.mount('#app')
    const asd = createApp({
        data(){
            return {
                ming:'hong',
                msg:{
                    li:'<strong>黑虎</strong>'
                }
            }
        }
    })
    asd.mount('#asd')
</script>